Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add custom page layout selector #2178

Merged

Conversation

NamelessCoder
Copy link
Member

@NamelessCoder NamelessCoder commented Sep 13, 2024

Note: Not available on TYPO3v10.

Adds a replacement page layout selector which can be
enabled instead of the default TCA "select" type.

The page layout selector is enabled in extension
configuration and can be configured through TCA
overrides (in Configuration/TCA/Overrides/pages.php
of an extension that depends on Flux):

// For both tx_fed_page_controller_action and tx_fed_page_controller_action_sub
// and can be configured individually, e.g. to make sub-layout icons smaller
// or only render titles/descriptions for "this page" layouts.

$GLOBALS['TCA']['pages']['columns']['tx_fed_page_controller_action']['config']['iconHeight'] = 200;
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_controller_action']['config']['titles'] = true;
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_controller_action']['config']['descriptions'] = true;

@NamelessCoder NamelessCoder force-pushed the feature/layout-selector branch 8 times, most recently from 5d26996 to c7e0bbf Compare September 16, 2024 14:12
Note: Not available on TYPO3v10.

Adds a replacement page layout selector which can be
enabled instead of the default TCA "select" type.

The page layout selector is enabled in extension
configuration and can be configured through TCA
overrides (in Configuration/TCA/Overrides/pages.php
of an extension that depends on Flux):

```
// For both tx_fed_page_controller_action and tx_fed_page_controller_action_sub
// and can be configured individually, e.g. to make sub-layout icons smaller
// or only render titles/descriptions for "this page" layouts.

$GLOBALS['TCA']['pages']['columns']['tx_fed_page_controller_action']['config']['iconHeight'] = 200;
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_controller_action']['config']['titles'] = true;
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_controller_action']['config']['descriptions'] = true;
```
@NamelessCoder NamelessCoder merged commit 150b42c into FluidTYPO3:development Sep 16, 2024
14 checks passed
@NamelessCoder NamelessCoder deleted the feature/layout-selector branch September 16, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant